module.exports = {
  nav_name: '身份管理', //生成导航菜单
  module_name: 'identify_manager',  //生成路径，与模块名相同
  api: `{
    page: commonPath + "/admin/sys/role/search", // 分页
    detail: commonPath + '/admin/sys/role/getDetail', //详情,
    add: commonPath + '/admin/sys/role/insert', //添加
    edit: commonPath + "/admin/sys/role/update", //编辑
    del: commonPath + "/admin/sys/role/delete", //删除
  }`,
  table: {
    // isGenerate: "false", //false表示不生成页面
    nav_name: "身份列表",
    tipsText: "身份管理 >> 身份列表",
    //获取列表页面
    tableData: [
      { title: '序号', name: 'index', type: "normal" },
      { title: '身份类别', name: 'roleName', type: "normal", showObj: "{}" },
      { title: '数量', name: 'temp', type: "normal", showObj: "{}" },
    ],
    tableOpt: [
      // {
      //   type: "view",
      //   text: "查看",
      //   request: false,
      //   jump: "/member_manager/see_detail_member查看"
      // },
      {
        type: "modify",
        text: "编辑",
        request: false,
        jump: "/identify_manager_add_page"
      },
      // {
      //   type: "changeState",
      //   text: "加入黑名单",
      //   request: true,
      //   url: "API.member_manager.changeState",
      //   requestType: 'post',
      //   params: `{id,  state: 2 }`, //必须为文本
      //   methodNameTag: 'Black', //方法衔接拓展名
      // },
      {
        type: "del",
        text: "删除",
        request: true,
        url: "API.identify_manager.del",
        requestType: 'post',
        isSplitSearchString: "true",
      },
    ],
    search: {
      contentArr: {
        input1: { labelName: '身份类别', inputName: 'roleName' },
      },
      searchBtn: {
        text: "查询", //链接与table请求接口相同，不做另外配置
      },
      addBtn: {
        //搜索栏具有添加功能按钮时，设置此字段
        type: "add",
        text: "新增类别",
        request: false,
        jump: "/identify_manager_add_page"
      }
    },
  },

  //添加页面1
  add_page: {
    // isGenerate: "false", //false表示不生成页面
    // add_page_name: "add_course_sort",  //尽量短些,要拼接路由
    tipsText: "课程管理 >> 类别",
    formData: {
      // titleText: "请填写管理员相关信息",
      //三种类型，输入，下拉，图片上传
      input1: {
        labelName: '类别名称',
        inputName: 'roleName',
        isNeed: 'true', 
      },
      // input2: {
      //   labelName: '数量',
      //   inputName: 'num',
      //   isNeed: 'true', 
      // },
    },
    addBtn: {  //添加按钮
      text: '立即添加',
      url: "API.identify_manager.add",  //链接
      extraParams: `
        menuId : [ 0 ],
      `
    },
    editBtn: {  //编辑按钮
      text: '编辑',
      detailUrl: "API.identify_manager.detail",
      detailType: 'post',
      detailParams: {},   //这里是对象,非字符串, 只能写给定值的参数
      editUrl: "API.identify_manager.edit",
      isSplitSearchString: 'true', //列表拼接查询字符串
      extraParams: `
        menuId : [ 0 ],
      `,
    },
    cancelBtn: { text: "取消" }, //
  },

  // //详情页面
  // detail_page: {
    
  // }
}
